#coding=UTF-8
import requests
import json

# 引入自定义的keystone模块
import keystone
keystone_s=keystone.getToken()

#端点地址：
snapshots_url="http://192.168.100.10:9696/v2.0/subnets/"
#定义请求头
headers={
    "X-Auth-Token":keystone_s['token']
}
snapshots_id="3f82a2d7-ea2b-457d-ab99-cadf857150b2"
#发送请求
req=requests.delete(snapshots_url+snapshots_id,headers=headers)
print(req.status_code)
if req.status_code==204:
    print("删除成功")
